﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MusicManager
{
    public partial class ListInfoForm : Form
    {
        public delegate void EventDelegate(string listName);
        public event EventDelegate ClosingEvent;

        public ListInfoForm()
        {
            InitializeComponent();
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            ClosingEvent(textBoxListName.Text);
            this.DialogResult = DialogResult.OK;
            Dispose();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            ClosingEvent("");
            this.DialogResult = DialogResult.Cancel;
            Dispose();
        }
    }
}
